package com.sgb.kjwl.view.ui.adapter.carrierDemand;

import android.content.Context;
import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.EnquiryTypeEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;
import java.util.List;

public class DemandHallTypeAdapter extends BaseRecycleAdapter<EnquiryTypeEntity> {

    private boolean flag;
    private EnquiryTypeEntity entity;

    public DemandHallTypeAdapter(Context context, List<EnquiryTypeEntity> datas) {
        super(context,R.layout.item_deman_hall_status, datas);
    }
    @Override
    public void convert(ItemViewHolder holder, EnquiryTypeEntity provinceEntity) {
        holder.setBinding(BR.viewModel,provinceEntity);
    }

    public void setSelected(boolean f,EnquiryTypeEntity e){
        flag = f;
        entity = e;
        notifyDataSetChanged();
    }
}
